import React from 'react'

const Item =(props)=>{
    return (<li>{props.children}
    <button onClick={()=>{props.del(props.id)}}>删除</button>
    <button onClick={()=>{props.edit(props.id)}}>编辑</button>
    </li> )
}
export default Item